package cn.cs.client;

import cn.cs.config.CsConfiguration;
import cn.cs.fallback.ExpensesExplainFallBack;
import cn.cs.fallback.RepairBbsTypeFallBack;
import cn.cs.pojo.RepairBbsType;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * Created by yuexl
 */
@FeignClient(name = "cs-user-provider", configuration = CsConfiguration.class, fallback = RepairBbsTypeFallBack.class)
public interface RepairBbsTypeClient {

    @RequestMapping(value = "/getRepairBbsTypeById", method = RequestMethod.POST)
    public RepairBbsType getRepairBbsTypeById(@RequestParam("id") String id) throws Exception;

    @RequestMapping(value = "/getRepairBbsTypeListByMap", method = RequestMethod.POST)
    public List<RepairBbsType> getRepairBbsTypeListByMap(@RequestBody Map<String, Object> param) throws Exception;

    @RequestMapping(value = "/getRepairBbsTypeCountByMap", method = RequestMethod.POST)
    public Integer getRepairBbsTypeCountByMap(@RequestBody Map<String, Object> param) throws Exception;

    @RequestMapping(value = "/addRepairBbsType", method = RequestMethod.POST)
    public Integer addRepairBbsType(@RequestBody RepairBbsType repairBbsType) throws Exception;

    @RequestMapping(value = "/modifyRepairBbsType", method = RequestMethod.POST)
    public Integer modifyRepairBbsType(@RequestBody RepairBbsType repairBbsType) throws Exception;

    @RequestMapping(value = "/deleteRepairBbsTypeById", method = RequestMethod.POST)
    public Integer deleteRepairBbsTypeById(@RequestParam("id") String id) throws Exception;

}

